package com.TeacherInfoServer.common.service;

import com.TeacherInfoServer.common.Result;
import com.TeacherInfoServer.pojo.DTO.SearchDTO.WorkExperienceSearchDTO;
import com.TeacherInfoServer.pojo.entity.WorkExperience;
import com.TeacherInfoServer.pojo.DTO.AddWorkExperienceDTO;
import com.TeacherInfoServer.pojo.DTO.UpdateWorkExperienceDTO;
import com.TeacherInfoServer.pojo.vo.WorkExperienceListVo;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.util.Map;

public interface WorkExperienceService extends IService<WorkExperience> {
    Result<Map<String, Integer>> addOne(AddWorkExperienceDTO addWorkExperienceDTO);
    Result<WorkExperienceListVo> getList(Long pageNumber, Long pageSize);

    Map<String,Object> searchWorkExperienceList(WorkExperienceSearchDTO workExperienceSearchDTO);

    //    Result<WorkExperienceListVo> getOneList(Long pageNumber, Long pageSize, String teacherId);
    Result<Map<String, Integer>> deleteBatch(Integer[] ids);
    Result<Map<String, Integer>> updateOne(UpdateWorkExperienceDTO updateWorkExperienceDTO);
    void export(HttpServletResponse response, String fileName) throws IOException;
}
